package me.sdevil507.supports.upload.service;

import me.sdevil507.supports.upload.po.AttachFile;

import java.util.List;

public interface AttachFileService {
    /**
     * 删除附件
     *
     * @param id 成果id
     */
    void delete(Long id);

    AttachFile save(AttachFile attachFile);

    List<AttachFile> getAllByRelationId(Long relationId);

    AttachFile getOneByRelationId(Long relationId);

    AttachFile getAttachFileById(Long id);
}
